package com.ly.pojo;

import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * cultivate
 */
@Data
public class Cultivate implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 班级代码
     */
    private String classCode;

    /**
     * 课程代码
     */
    private String courseCode;

    /**
     * 成绩状态（已录入，未录入）
     */
    private String gradeStatus;

    /**
     * 开设学期（2025年上学期）
     */
    private String semester;

    private static final long serialVersionUID = 1L;

    public Cultivate() {
    }

    public Cultivate(Integer id, String classCode, String courseCode, String gradeStatus, String semester) {
        this.id = id;
        this.classCode = classCode;
        this.courseCode = courseCode;
        this.gradeStatus = gradeStatus;
        this.semester = semester;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Cultivate cultivate = (Cultivate) o;
        return Objects.equals(id, cultivate.id) && Objects.equals(classCode, cultivate.classCode) && Objects.equals(courseCode, cultivate.courseCode) && Objects.equals(gradeStatus, cultivate.gradeStatus) && Objects.equals(semester, cultivate.semester);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, classCode, courseCode, gradeStatus, semester);
    }

    @Override
    public String toString() {
        return "Cultivate{" +
                "id=" + id +
                ", classCode='" + classCode + '\'' +
                ", courseCode='" + courseCode + '\'' +
                ", gradeStatus='" + gradeStatus + '\'' +
                ", semester='" + semester + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public String getGradeStatus() {
        return gradeStatus;
    }

    public void setGradeStatus(String gradeStatus) {
        this.gradeStatus = gradeStatus;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }
}